package com.gec.system.controller;

import com.gec.system.util.SendSms;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ahthor: lxj
 * @date: 2023/12/14 11:17
 * @title:
 **/

@Api(tags = "验证码服务控制器")
@RestController
@RequestMapping("/admin/system/aliyunSms")
public class AliyunSms {

    @Autowired
    private SendSms sendSms;

//    @ApiOperation("获取短信")
    @GetMapping("/SendCode/{phone}")
    public void SendCode(@PathVariable String phone){

        this.sendSms.send(phone,"8989");
    }

}
